describe('ext-api', () => {
    it(' getBatteryInfo', async () => {
        if (process.env.UNI_UTS_PLATFORM == 'app-android') {
            const page = await program.reLaunch('/pages/ext-api/ext-api')
            await page.waitFor('view')
            await page.waitFor(1000)
            const uvueBatteryInfoResult = await page.callMethod('getUVueBatteryInfo')
            expect(typeof uvueBatteryInfoResult.level).toBe('number')
            const utsBatteryInfoResult = await page.callMethod('getUTSBatteryInfo')
            expect(typeof utsBatteryInfoResult.level).toBe('number')
        }
    })
})